﻿@model IEnumerable<ThuySan.Bussiness.ProductTag>

<div class="column" id="right_column">
    @foreach (var tag in Model.GroupBy(c=>c.Tag))
    { 
        <div class="home_block" id="tmspecials">
        <h4>@tag.Key.Name</h4>
        <div class="block_content">
            <ul>
            @foreach (var pro in Model.Where(c=>c.TagId==tag.Key.TagId).ToList())
            { 
               
                <li><a href="/@pro.Product.GetUrl()"
                    class="product_image">
                    <img title="@pro.Product.Description" alt="@pro.Product.Name" src="@Html.UploadPath("Products")@pro.Product.AvatarImage" onError="this.src='/Content/images/error.jpg';"/></a>
                    <div>
                        <h5>
                            <a title="@pro.Product.Description" href="/@pro.Product.GetUrl()"
                                class="product_link">@pro.Product.Name</a></h5>
                        <!--<p class="product_desc">Don't forget that we have various promos as...</p>-->
                       @* <div class="price-wrapper">
                            <span class="price">@string.Format("{0:c0}",pro.PromotionalPrice)</span> <span class="price-discount">@string.Format("{0:c0}", pro.Price)</span>
                        </div>*@
                       
                    </div>
                </li>
            }
                
            </ul>
        </div>
        <div class="clearblock">
        </div>
    </div>
    }
    
    <!-- /tmspecials -->
</div>
